Add Attachments
AutomatR.Jira.Activities.AddAttachments
The "Add Attachments" activity in AutomatR's Jira package facilitates the addition of attachments to existing JIRA issues. This activity streamlines the process of attaching files to JIRA issues, enhancing automation capabilities for issue management.
Properties
Name | Description |
---|---|
Input | |
Attachments | Specifies a variable containing a list of strings, where each string represents the path of a file to be uploaded as an attachment to the JIRA issue. |
Ticket ID | Specifies the Ticket ID of the JIRA issue to which attachments should be added. Either the "Ticket ID" or "Ticket Key" must be provided. String variables containing the Ticket ID. |
Ticket Key | Specifies the Ticket Key of the JIRA issue to which attachments should be added. Either the "Ticket ID" or "Ticket Key" must be provided. String variables containing the Ticket Key. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Add Attachments" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1. |
Output | |
Result | Outputs a boolean value indicating whether the attachment addition process was successful. True if successful; False otherwise. Variables of relevant types (e.g., Boolean variables) to store the operation result. |
Validation:
- The activity validates whether either the "Ticket ID" or "Ticket Key" is provided. If neither is provided, a validation error is raised.
How to use:
- Drag and drop the "Add Attachments" activity onto the workflow.
- Configure the properties by specifying the Ticket ID or Ticket Key, and provide a variable containing a list of file paths to be attached.
- Optionally, configure the delay and customize the display name.
- Execute the workflow to add attachments to the specified JIRA issue.
Example: Consider an example where the "Add Attachments" activity is used to attach two files to a JIRA issue with the Ticket Key "PROJ-123":
Add Attachments:
Delay: 2
Ticket Key: "PROJ-123"
Attachments: ["C:/Documents/File1.txt", "C:/Documents/File2.jpg"]
Result: isAttachmentAdded
In this example, the activity waits for 2 seconds before executing, attaches two files ("File1.txt" and "File2.jpg") to the JIRA issue with the Ticket Key "PROJ-123." The result of the operation (success or failure) is stored in the Boolean variable "isAttachmentAdded" for further handling in the workflow.